﻿using System;
using System.Collections.Generic;
using System.Text;
using VoteServices.VoteModel;

namespace VoteServices
{
    public class VoteData
    {
        public List<User> users;
        public List<Problem> problems;
        public List<Option> options;
        public List<Record> records;

        public VoteData()
        {
            users = new List<User>();

            problems = new List<Problem>()
            {
                new Problem()
                {
                    Id=1,
                    Content="你最喜欢的男明星是谁？",
                    CreationTime = new DateTime(),
                    ExpirationTime = new DateTime().AddDays(1)
                 },
                new Problem()
                {
                    Id=2,
                    Content="你最喜欢的女明星是谁？",
                    CreationTime = new DateTime(),
                    ExpirationTime = new DateTime().AddDays(1)
               }
            };
            options = new List<Option>()
            {
                new Option()
                {
                    ProblemId=problems[0].Id,
                    Content="黄渤1",
                    Id=100,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[0].Id,
                    Content="黄渤2",
                    Id=101,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[0].Id,
                    Content="黄渤3",
                    Id=102,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[0].Id,
                    Content="黄渤4",
                    Id=103,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[0].Id,
                    Content="黄渤5",
                    Id=104,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[0].Id,
                    Content="不参与此次投票",
                    Id=0,
                    Vote=0

                },

                new Option()
                {
                    ProblemId=problems[1].Id,
                    Content="陈意涵",
                    Id=105,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[1].Id,
                    Content="孙俪",
                    Id=106,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[1].Id,
                    Content="张碧晨",
                    Id=107,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[1].Id,
                    Content="高圆圆",
                    Id=108,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[1].Id,
                    Content="周冬雨",
                    Id=109,
                    Vote=0
                },
                new Option()
                {
                    ProblemId=problems[1].Id,
                    Content="不参与此次投票",
                    Id=0,
                    Vote=0

                },
            };
            records = new List<Record>();
            users = new List<User>()
            {
                new User()
                {
                    UserId=users.Count+1,
                    Account="111111",
                    Password="111111",
                    Name="张三"
                },
                new User()
                {
                    UserId=users.Count+1,
                    Account="222222",
                    Password="222222",
                    Name="李四"
                },
                 new User()
                {
                    UserId=users.Count+1,
                    Account="333333",
                    Password="333333",
                    Name="王五"
                }

            };


       
        }

    }
}
